home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990: Discy Business / Discy Business.2mg / DEV.CD / TOOLS / APW.Interfaces / CInclude / StdFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-01  |  3.1 KB  |  97 lines  |  [04] ASCII Text (0x0000)

  1. /********************************************
  2. ; File: StdFile.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __STDFILE__
  14. #define __STDFILE__
  15.  
  16.  
  17. /* Error Codes */
  18. #define badPromptDesc 0x1701
  19. #define badOrigNameDesc 0x1702
  20. #define badReplyNameDesc 0x1704
  21. #define badReplyPathDesc 0x1705
  22. #define badCall 0x1706
  23.  
  24. /* filterProc Result Codes */
  25. #define noDisplay 0x0000  /* file not to be displayed */
  26. #define noSelect 0x0001  /* file displayed, but not selectable */
  27. #define displaySelect 0x0002  /* file displayed and selectable */
  28.  
  29. /* Other Constants */
  30. #define sfWildAuxType 0x8000
  31. #define sfMatchFileType 0x8000
  32. #define sfWildFileType 0x4000
  33. #define sfMatchAuxType 0x4000
  34. #define sfDisplayGrey 0x2000
  35. #ifndef sfFileTypeEntriesLength  /* SFTypeList - default number of FileTypeEntries */
  36. #define sfFileTypeEntriesLength 0x0005
  37. #endif
  38.  
  39. typedef struct SFReplyRec {
  40.    Boolean good; /*  */
  41.    Word fileType; /*  */
  42.    Word auxFileType; /*  */
  43.    char filename[16]; /*  */
  44.    char fullPathname[129]; /*  */
  45.    } SFReplyRec, *SFReplyRecPtr, **SFReplyRecHndl;
  46. struct SFReplyRec2 {
  47.    Boolean good;
  48.    Word fileType;
  49.    LongWord auxType;
  50.    RefDescriptor nameRefDesc;
  51.    Ref nameRef;
  52.    RefDescriptor pathRefDesc;
  53.    Ref pathRef;
  54. } ;
  55. typedef struct SFReplyRec2 SFReplyRec2, *SFReplyRec2Ptr, **SFReplyRec2Hndl;
  56. struct multiReplyRecord {
  57.    Word good; /*   */
  58.    Handle namesHandle; /*   */
  59. } ;
  60. typedef struct multiReplyRecord multiReplyRecord;
  61. struct SFTypeList {
  62.    Byte numEntries;
  63.    Byte fileTypeEntries[sfFileTypeEntriesLength];
  64. } ;
  65. typedef struct SFTypeList SFTypeList, *SFTypeListPtr, **SFTypeListHndl;
  66. struct TypeSelector2 {
  67.    Word flags; /*   */
  68.    Word fileType; /*   */
  69.    LongWord auxType; /*   */
  70. } ;
  71. typedef struct TypeSelector2 TypeSelector2;
  72. struct SFTypeList2 {
  73.    Word numEntries;
  74.    TypeSelector2 fileTypeEntries[sfFileTypeEntriesLength];
  75. } ;
  76. typedef struct SFTypeList2 SFTypeList2, *SFTypeList2Ptr;
  77. extern pascal void SFAllCaps() inline(0x0D17,dispatcher);
  78. extern pascal void SFBootInit() inline(0x0117,dispatcher);
  79. extern pascal void SFGetFile() inline(0x0917,dispatcher);
  80. extern pascal void SFGetFile2() inline(0x0E17,dispatcher);
  81. extern pascal void SFMultiGet2() inline(0x1417,dispatcher);
  82. extern pascal void SFPGetFile() inline(0x0B17,dispatcher);
  83. extern pascal void SFPGetFile2() inline(0x1017,dispatcher);
  84. extern pascal void SFPMultiGet2() inline(0x1517,dispatcher);
  85. extern pascal void SFPPutFile() inline(0x0C17,dispatcher);
  86. extern pascal void SFPPutFile2() inline(0x1117,dispatcher);
  87. extern pascal void SFPutFile() inline(0x0A17,dispatcher);
  88. extern pascal void SFPutFile2() inline(0x0F17,dispatcher);
  89. extern pascal void SFReScan() inline(0x1317,dispatcher);
  90. extern pascal void SFReset() inline(0x0517,dispatcher);
  91. extern pascal Boolean SFShowInvisible() inline(0x1217,dispatcher);
  92. extern pascal void SFShutDown() inline(0x0317,dispatcher);
  93. extern pascal void SFStartUp() inline(0x0217,dispatcher);
  94. extern pascal Boolean SFStatus() inline(0x0617,dispatcher);
  95. extern pascal Word SFVersion() inline(0x0417,dispatcher);
  96. #endif
  97.